package cn.kgc.blogservice.service;

import cn.kgc.blogcommon.pojo.Category;
import cn.kgc.blogcommon.pojo.News;
import cn.kgc.blogcommon.pojo.Type;
import cn.kgc.blogcommon.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface BlogService {
    public List<Type> getAllType();
    public List<Category> getCategory();
    public List<News> getAllNews(Integer categoryId);
    public User getUserById(Integer userId);
    public News getNewsById(Integer newsId);
    public List<Category> getPopularCategory();
    public List<Category> getCategoryByTypeId(Integer typeId);
    public List<Integer> getMinId();
    public List<News> getHotNews(List<Integer> newsIdList);
}
